package com.zhaozhaonews.api.article;


import com.zhaozhaonews.api.article.fallback.ArticleClientFallback;
import com.zhaozhaonews.model.article.dto.ArticleDto;
import com.zhaozhaonews.model.common.dto.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author WanJl
 * @version 1.0
 * @title IArticleClient
 * @description
 * @create 2025/2/19
 */
@FeignClient(value = "zhaozhaonews-article",fallback = ArticleClientFallback.class)
public interface IArticleClient {
    @PostMapping("/api/v1/article/save")
    ResponseResult save(@RequestBody ArticleDto articleDto);
}
